#include "kernel/types.h"
#include "user/user.h"

int main(int argc,char* argv[]){
    if(argc!=2){
        fprintf(2,"usage: sleep [ticks num]]n");
        //标准错误的文件描述符是2，输出到标准错误中
        exit(1);
    }

    int ticks=atoi(argv[1]);
    int ret=sleep(ticks);
    exit(ret);
}